<template>
  <div>
    <a-card :bordered="false">
      <f-search-form :more="false" @searchHandler="searchHandler" :show-sbtn="false" reset-btn-name="刷新" :tableObj="$refs.table">
<!--        <f-search-form-item label="部门" ref="dept" name="deptId" type="select" :data="api.dept.list"  valueKey="deptId" label-key="deptName" style="width: 220px"/>-->
<!--        <f-search-form-item label="单号" name="orderNo" style="width: 200px"/>-->
<!--        <f-search-form-item label="开始日期" type="date" name="beginDate" style="width: 240px"/>-->
<!--        <f-search-form-item label="结束日期" type="date" name="endDate" style="width: 240px"/>-->
<!--        <f-search-form-item label="供方资信" type="select" slot="advanced" name="supplierBondType" :data="api.busOrder.supplierBondType" style="width: 260px"/>-->
<!--        <f-search-form-item label="购方资信" type="select" slot="advanced" name="customBondType" :data="api.busOrder.customBondType" style="width: 260px"/>-->
<!--        <f-search-form-item label="购货方" name="customName" slot="advanced" style="width: 250px"/>-->
<!--        <f-search-form-item label="供货方" name="supplierName" slot="advanced" style="width: 250px"/>-->
      </f-search-form>
      <f-table ref="table" size="small" rowKey="ceId"  :showSetting="false"  :tableColumns="columns" :multiple="false" :scroll="scroll" :operator="operator" :params="queryParam" :api="api.erpRelation">

      </f-table>
    </a-card>
  </div>
</template>
<script>
  import api from '../../business/order/js/api'

  export default {
    name: 'erpRelation',
    data() {
      return {
        api: Object.assign(api, this.api),
        //列表初始化查询参数
        queryParam: {
          companyId: ''
        },
        superAdmin: this.superAdmin,
        scroll: { x: false },
        // 表头
        columns: [
          {
            title: '#',
            width: '50px',
            fixed: 'left',
            align: 'center',
            dataIndex: 'rowIndex',
            customRender: function (text, r, index) {
              return (text !== '合计') ? (parseInt(index) + 1) : text
            }
          },
          {
            title: '核算组织编号',
            align: 'left',
            ellipsis: true,
            width: '200px',
            dataIndex: 'companyCode'
          },
          {
            title: '核算组织名称',
            align: 'left',
            ellipsis: true,
            dataIndex: 'companyName'
          },
          {
            title: 'ERP数据库实例',
            align: 'left',
            ellipsis: true,
            dataIndex: 'erpName'
          }
        ],
        operator: []
      }
    },
    methods: {
      onLoad() {
        this.$refs.table.refresh()
      }
    }
  }
</script>
